﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;

namespace NSATBPortal
{
    public partial class TestDataSetDetails : System.Web.UI.Page
    {
        private int iID;
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void DefTestDataGrid_Init(object sender, EventArgs e)
        {
            string sVal = Request.QueryString[0].ToString();
            iID = Convert.ToInt32(sVal);

            ATBSchemaDB objATBDB = new ATBSchemaDB();
            DataTable dtResults = objATBDB.GetDefTestDataSetList(iID);
            objATBDB.Dispose();

            DefTestDataGrid.DataSource = dtResults;
            DefTestDataGrid.DataBind();

        }

        protected void DefTestDataDetailGrid_Init(object sender, EventArgs e)
        {
            string sVal = Request.QueryString[0].ToString();
            iID = Convert.ToInt32(sVal);

            ATBSchemaDB objATBDB = new ATBSchemaDB();
            DataTable dtResults = objATBDB.GetDefTestDataSetDetail(iID);
            objATBDB.Dispose();

            DefTestDataDetailGrid.DataSource = dtResults;
            DefTestDataDetailGrid.DataBind();

        }
    }
}